/**
 * The MIT License (MIT)
 * 
 * Copyright (c) 2016 mo_yq5
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
*/
package com.vulgarsdk.captcha;

import java.util.Date;

/**
 * 验证码信息，包括： 账号信息（如手机号，邮箱地址等常用账号类型）； 账号对应的验证码（客户端用户需要验证的验证码）； 验证码生成时间（默认的当前时间）；
 * 输入错误次数累计值（可用于程序控制允许用户输入次数）。
 *
 * @author mo_yq5
 * @since 2016年1月10日
 */
public class Captcha {
	// 需要验证的账号（如手机号、邮箱）
	private String account;
	// 验证码
	private String captcha;
	// 验证码生成时间
	private long timestamp = new Date().getTime();
	// 验证码输入错误次数
	private int failTimes = 0;

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public int getFailTimes() {
		return failTimes;
	}

	public void setFailTimes(int failTimes) {
		this.failTimes = failTimes;
	}
}
